package com.by.controller;

import com.by.bean.User;
import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@Api(tags = "用户管理")
public class UserController extends BaseController {

    @ApiOperation("保存用户")
    @PostMapping("/user")
    public ResultBean save(@RequestBody User user){
        return success("");
    }
}
